package com.probox.common.entity.domain.product;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.probox.common.core.annotation.Excel;

/**
 * 商品规格/属性对象 product_specs
 *
 *
 * @date 2021-05-27
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_specs")
public class ProductSpecs implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 商品规格ID
     */
    //默认主键自增
    @TableId(value = "SPECS_UID", type = IdType.AUTO)
    private Long specsUid;
    /**
     * 平台ID
     */
    @Excel(name = "平台ID")
    private Long platformUid;
    /**
     * 商品规格名称
     */
    @Excel(name = "商品规格名称")
    private String specsName;
    /**
     * 类型(1规格/0属性)
     */
    @Excel(name = "类型(1规格/0属性)")
    private String specsType;
    /**
     * 状态（1）有效
     */
    @Excel(name = "状态", readConverterExp = "1=")
    private String dataStatus;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long dataPriority;
    /**
     * 修改人ID
     */
    @Excel(name = "修改人ID")
    private Long updateUid;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Excel(name = "更新人名称")
    private String updateName;
}
